﻿@model IEnumerable<Web.Areas.Admin.Models.MenuItem>
<!DOCTYPE html>
<html>
<head>
    <link href="@Url.Content("~/Content/Menu.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body{ margin:0;padding:0; background-color:#FFF;}
    </style>
</head>
<body>
    <div id="navcontainer">
        <ul id="navlist">
            @foreach (var item in Model)
            {
                <li><a href="javascript:void(0);">@item.MenuName</a>
                @foreach (var child in item.ChildMenus)
	            {
		            <ul id="subnavlist">
                        @if (child.MenuHref != null)
                        {
                            <li><a href="@child.MenuHref" target="bodyFrame">@child.MenuName</a></li>
                        }
                        else
                        {
                            <li><a href="#" target="bodyFrame">@child.MenuName</a></li>
                        }
                    </ul>
                }
                </li>
            }
        </ul>
    </div>
</body>
</html>
